package com.masterrabbit.gmh.controller;

import com.masterrabbit.gmh.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sysUser")
public class SysUserController {
    @Autowired
    private SysUserService sysUserService;

    @PostMapping("/getUserIdByUsername")
    public Integer getUserIdByUsername(String username) {

        return sysUserService.getUserIdByUsername(username);

    }



}


